/* ===========================================================================
 *
 *       Filename:  zinnia_handwriting_manager.cpp
 *
 *    Description:  inputmethod manager(handwriting) zh_CN, zinnia (qt)
 *
 * - Mode: 644
 * - NOTE. NOT use "dos"
 * - Updated: 2015-04-26 16:58:53
 *
 *        Version:  1.0.0
 *        Created:  2015-04-16 10:13:08
 *       Revision:  1.0.0
 *       Compiler:  g++
 *
 *         Author:  Yui Wong, email: yuiwong@126.com
 *   Organization:  ""
 *        License:  LGPLv3
 *
 *  This file is part of portable-inputmethod.yw.
 *
 *  portable-inputmethod.yw
 *  is free software: you can redistribute it
 *  and/or modify it under the terms of the GNU General Public License as
 *  published by the Free Software Foundation, either version 3 of the
 *  License, or (at your option) any later version.
 *
 *  portable-inputmethod.yw
 *  is distributed in the hope that it will be
 *  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with portable-inputmethod.yw.
 *  If not, see <http://www.gnu.org/licenses/>.
 *
 * ===========================================================================
 */


#if defined(PIMETHOD_DEBUG)
#	include <QtCore/QDebug>
#endif

#include <zinnia_handwriting_manager.h> /* class zinnia_handwriting_manager */
#include <zinnia_handwriting.h> /* class zinnia_handwriting */


zinnia_handwriting_manager::zinnia_handwriting_manager (void) {
#	if defined(PIMETHOD_DEBUG)
	qDebug() << __FILE__ << __LINE__ << __func__;
#	endif /* if defined(PIMETHOD_DEBUG) */
} /* zinnia_handwriting_manager::zinnia_handwriting_manager */


inputmethod * zinnia_handwriting_manager::create_method (
	QWidget * focus,
	const char * conf,
	QWidget * parent4method) {
	inputmethod * i;

#	if defined(PIMETHOD_DEBUG)
	qDebug() << __FILE__ << __LINE__ << __func__;
#	endif /* if defined(PIMETHOD_DEBUG) */


	i = new zinnia_handwriting(parent4method);
	i->reinitialize_core(focus, conf);

	return i;
} /* zinnia_handwriting_manager::create_method */


zinnia_handwriting_manager::~zinnia_handwriting_manager (void) {
#	if defined(PIMETHOD_DEBUG)
	qDebug() << __FILE__ << __LINE__ << __func__;
#	endif /* if defined(PIMETHOD_DEBUG) */
} /* zinnia_handwriting_manager::~zinnia_handwriting_manager */
/*
 * end of file zinnia_handwriting_manager.cpp
 */
